//
// Buttons
// --------------------------------------------------

// Button
// -------------------------

.btn { font-weight: 600; .bevelEmboss(0,0); }
.btn-block { width: 100%; }

// Default
// -------------------------

.btn-default {
	background: #f4f4f4;
	border: 1px solid #dcdcdc;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
	color: rgba(0,0,0,.6);
	text-shadow: 0 1px 0 #fff;
	font-weight: 600;
}
.btn-group.open .btn-default.dropdown-toggle,
.btn-default.disabled, .btn-default[disabled],
.btn-default:hover, .btn-default:focus { background: #e8e8e8; }
.btn-default:active, .btn-default.active { background: darken(#e8e8e8, 20%); color: #fff; text-shadow: none; }
.btn-default .caret { border-top-color: rgba(0,0,0,.5); }

// Warning
// -------------------------

.btn-warning {
	background: @warningColor;
	border: 1px solid @warningColor;
	color: #ffffff;
	text-shadow: 0 1px 0 rgba(0,0,0,.5);
	&.glyphicons {
		i:before { color: rgba(255,255,255,.5); text-shadow: none; }
	}
}
.btn-group.open .btn-warning.dropdown-toggle,
.btn-warning.disabled, .btn-warning[disabled],
.btn-warning:hover, .btn-warning:focus { background: darken(@warningColor, 5%); color: #fff; }
.btn-warning:active, .btn-warning.active { background: darken(@warningColor, 20%); color: #fff; }
.btn-warning .caret { border-top-color: rgba(255,255,255,.7); border-bottom-color: rgba(255,255,255,.7); }

// Info
// -------------------------

.btn-info {
	background: #93B9D8;
	border: 1px solid #93B9D8;
	color: #ffffff;
	text-shadow: 0 1px 0 rgba(0,0,0,.5);
	&.glyphicons {
		i:before { color: rgba(255,255,255,.5); text-shadow: none; }
	}
}
.btn-group.open .btn-info.dropdown-toggle,
.btn-info.disabled, .btn-info[disabled],
.btn-info:hover, .btn-info:focus { background: #93B9D8; color: #fff; }
.btn-info:active, .btn-info.active { background: darken(#93B9D8, 20%); color: #fff; }
.btn-info .caret { border-top-color: rgba(255,255,255,.7); border-bottom-color: rgba(255,255,255,.7); }

// Danger
// -------------------------

.btn-danger {
	background: @dangerColor;
	border: 1px solid @dangerColor;
	color: #ffffff;
	text-shadow: 0 1px 0 rgba(0,0,0,.5);
	&.glyphicons {
		i:before { color: rgba(255,255,255,.5); text-shadow: none; }
	}
}
.btn-group.open .btn-danger.dropdown-toggle,
.btn-danger.disabled, .btn-danger[disabled],
.btn-danger:hover, .btn-danger:focus { background: darken(@dangerColor, 5%); color: #fff; }
.btn-danger:active, .btn-danger.active { background: darken(@dangerColor, 20%); color: #fff; }
.btn-danger .caret { border-top-color: rgba(255,255,255,.7); border-bottom-color: rgba(255,255,255,.7); }

// Primary
// -------------------------

.btn-primary {
	background: @primaryColor;
	border: 1px solid darken(@primaryColor, 10%);
	color: #ffffff;
	text-shadow: 0 1px 0 rgba(0,0,0,.5);
	&.glyphicons {
		i:before { color: rgba(255,255,255,.4); text-shadow: none; }
	}
}
.btn-group.open .btn-primary.dropdown-toggle,
.btn-primary.disabled, .btn-primary[disabled],
.btn-primary:hover, .btn-primary:focus { background: darken(@primaryColor, 5%); color: #fff; }
.btn-primary:active, .btn-primary.active { background: darken(@primaryColor, 20%); color: #fff; }
.btn-primary .caret { border-top-color: #ffffff; border-bottom-color: #ffffff; }

// Inverse
// -------------------------

.btn-inverse {
	background: @inverseColor;
	border: 1px solid @inverseColor;
	color: #ffffff;
	text-shadow: 0 1px 0 rgba(0,0,0,.5);
	&.glyphicons {
		i:before { color: #919293; text-shadow: none; }
	}
}
.btn-group.open .btn-inverse.dropdown-toggle,
.btn-inverse.disabled, .btn-inverse[disabled],
.btn-inverse:hover, .btn-inverse:focus { background: darken(@inverseColor, 5%); color: #fff; }
.btn-inverse:active, .btn-inverse.active { background: darken(@inverseColor, 20%); color: #fff; }
.btn-inverse .caret { border-top-color: #fff; border-bottom-color: #fff; }

// Success
// -------------------------

.btn-success {
	background: @successColor;
	border: 1px solid @successColor;
	color: #ffffff;
	text-shadow: 0 1px 0 rgba(0,0,0,.5);
	&.glyphicons {
		i:before { color: #a2bc9b; text-shadow: none; }
	}
}
.btn-group.open .btn-success.dropdown-toggle,
.btn-success.disabled, .btn-success[disabled],
.btn-success:hover, .btn-success:focus { background: darken(@successColor, 5%); color: #fff; }
.btn-success:active, .btn-success.active { background: darken(@successColor, 20%); color: #fff; }
.btn-success .caret { border-top-color: #fff; border-bottom-color: #fff; }

// Button groups
// -------------------------

.btn-group .btn-primary:not(.dropdown-toggle) { margin-right: 2px; }
.btn-group-vertical.block { display: block; }
//.bootstrap-select.btn-group, .bootstrap-select.btn-group[class*="span"] { margin: 0; }
.btn-group.btn-block {
	padding: 0;
	position: relative;
	.leadcontainer {
		left: 0;
	    position: absolute;
	    right: 29px;
	    > .btn:first-child {
	    	.rounded();
			margin-left: 0;
			-webkit-border-bottom-left-radius: 4px;
			border-bottom-left-radius: 4px;
			-webkit-border-top-left-radius: 4px;
			border-top-left-radius: 4px;
			-moz-border-radius-bottomleft: 4px;
			-moz-border-radius-topleft: 4px;
			text-align: left;
		}
	}
	.dropdown-lead {
	    box-sizing: border-box;
	    width: 100%;
	}
	.dropdown-toggle {
		width: 30px;
	    float: right;
	    box-sizing: border-box;
	    text-align: center;
	    padding-left: 0;
	    padding-right: 0;
	}
}

// Button icon stacked
// -------------------------

.btn-icon-stacked {
	text-align: left;
	padding: 5px 0 5px 45px;
	i {
		display: block;
		width: 24px;
		height: 24px;
		position: absolute;
		left: 10px;
		top: 10px;
		&:before { left: auto; top: auto; position: relative; text-align: center; }
	}
	span { 
		display: block; 
		font-size: 13px;
		line-height: normal;
	}
}

// Button other styles
// -------------------------

.btn-facebook {
	background: #5d7cb6;
	color: #fff;
	text-shadow: 0 1px 0 rgba(0,0,0,.1);
	border: none;
	i:before { color: #fff; }
	&:hover { background: lighten(#5d7cb6, 10%); color: #fff; }
}
.btn-google {
	background: #9e3838;
	color: #fff;
	text-shadow: 0 1px 0 rgba(0,0,0,.1);
	border: none;
	i:before { color: #fff; }
	&:hover { background: lighten(#9e3838, 10%); color: #fff; }
}

// Toggle view code Button
// -------------------------

.btn-toggle-code { position: absolute; bottom: 0; right: 0; z-index: 1000; .rounded(); &.outside { bottom: -24px; } }

// Button Pattern
// -------------------------

.btn { background-image: url("../images/pattern1.png"); background-repeat: repeat; }

// ONLY Buttons on UI Demo Page (Table)
// -------------------------

#demo_buttons {
	.btn-block { max-width: 200px; margin: 0 auto; }
	thead th { width: 25%; }
}